import React, { Component } from 'react'
import { connect } from 'react-redux'
import { areaList } from '../reducers/areaReducers'

class AreaApp extends Component {

  render () {
  const {areaList} = this.state
    console.log(areaList);
    return (
      <div>
        redux-react
      </div>
    )
  }
}

const mapStateToProps = (state,ownProps) =>{
  const areaList = state.get('areaList')
  return{
    areaList,
  }
}

export default connect(mapStateToProps)(AreaApp)
